<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="LinkCategories.aspx.cs" Inherits="Admin_LinkCategories" Title="Untitled Page" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
  <table style="width: 100%; height: 100%">
      <tr>
          <td align="center" style="width: 100px">
              <h3>Edit Link Categories</h3>
          </td>
      </tr>
        <tr>
            <td style="width: 100px" align="center">
                &nbsp;&nbsp;
                <table border="0">
                    <tr>
                        <td align="right" style="width: 100px">
                            &nbsp;<asp:Label ID="Label2" runat="server" Text="Title"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:TextBox ID="tbo_Title" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 100px">
                            <asp:Label ID="Label1" runat="server" Text="Description"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:TextBox ID="tbo_Desc" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 100px">
                        </td>
                        <td style="width: 100px">
    <asp:Button ID="but_Save" runat="server" Text="Save" OnClick="but_Save_Click" /></td>
                    </tr>
                </table>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    DataKeyNames="LCA_ID" DataSourceID="ObjectDataSource1" EmptyDataText="There are no data records to display."
                    ForeColor="#333333" GridLines="None" OnRowDataBound="GridView1_RowDataBound">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:CommandField ShowEditButton="True"  />
                        <asp:BoundField DataField="LCA_ID" HeaderText="LCA_ID" ReadOnly="True" SortExpression="LCA_ID"
                            Visible="False" />
                        <asp:BoundField DataField="LCA_NAME" HeaderText="NAME" SortExpression="LCA_NAME" />
                        <asp:BoundField DataField="LCA_DESC" HeaderText="Description" SortExpression="LCA_DESC" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="DeleteLinkCategory"
                    SelectMethod="GetLinkCategories" TypeName="LinkManager" UpdateMethod="UpdateLinkCategory">
                    <DeleteParameters>
                        <asp:Parameter Name="LCA_ID" Type="Int32" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="LCA_ID" Type="Int32" />
                        <asp:Parameter Name="LCA_NAME" Type="String" />
                        <asp:Parameter Name="LCA_DESC" Type="String" />
                    </UpdateParameters>
                </asp:ObjectDataSource>
                &nbsp; &nbsp;&nbsp;
            </td>
        </tr>
    </table>
    &nbsp; &nbsp;
    &nbsp;&nbsp;
    </asp:Content>

